from fastapi import APIRouter

from common.route.mall_route import MallMatchAPIRoute
from common.route.route import ZipCustomerRoute
from common.route.tenant_route import ClientTenantBaseAPIRoute


router = APIRouter(prefix="/spu", route_class=ZipCustomerRoute(ClientTenantBaseAPIRoute, MallMatchAPIRoute))


@router.get("", description="搜索商品")
async def search_spu():
    ...


@router.get("/{spu_id:int}", description="获取商品详情")
async def get_spu_detail():
    ...


